子网掩码:用于与 IP 地址配合,标识网络部分与主机部分的位掩码,从而确定一个设备属于哪个子网(常见如 255.255.255.0)。也常以 CIDR 形式表示,如 /24。
/ˈsʌbˌnɛt mæsk/
My home router uses a subnet mask of 255.255.255.0.
我的家用路由器使用的子网掩码是 255.255.255.0。
If two computers have the same subnet mask and their network bits match, they can usually communicate directly without a router; otherwise, traffic must be sent to the default gateway.
如果两台电脑的子网掩码相同且网络位匹配,它们通常可以不经过路由器直接通信;否则,流量必须发送到默认网关。
subnet 来自 sub-(“下级、次级”)+ network(网络),表示“网络之下再划分出的子网络”。mask 原意为“面具、遮罩”,在计算机领域引申为“用于遮蔽/筛选某些位的掩码”。合起来 subnet mask 指“用来筛选并区分网络位与主机位的遮罩”。